package ChinaOfResponsibility.pattern.demo;

/**
 * Created by 逸足天涯 on 10/19/2019.
 */
public class IssueRaiser {
    public IReceiver setFirstRecevier;
    public IssueRaiser (IReceiver firstRecevier){
        this.setFirstRecevier = firstRecevier;
    }
    public void raoseMessage(Message msg){
        if(setFirstRecevier != null){
            setFirstRecevier.processMessage(msg);
        }
    }
}
